<?php
/**
 * 递归计算数组维度
 * @param $array
 * @param int $deep
 * @return mixed
 */
function array_dimension($array, $deep = 0)
{
	static $dimension = 0;
	if (is_array($array)) {
		$deep++;
		$dimension = ($deep > $dimension) ? $dimension+1 : $dimension;
		foreach ($array as $key => $value) {
			if (is_array($value)) {
				array_dimension($value, $deep);
			}
		}
	}
	return $dimension;
}
/**
 *
 */
function array_multiply($array) {
	if (is_array($array)) {
		foreach ($array as $key => $value) {
			if (is_array($value))
				return true;
		}
	}
	return false;
}
$array = array(
	//0 => '111',
	1 => array(222,333,444=>array(111)),
	//2 => array(333),
	//3 => '555',
);
echo "result:".array_multiply($array);